package com.huangjian.service;

import com.huangjian.mapper.OrderMapper;
import com.huangjian.pojo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public Order queryById(Integer id) {
        return orderMapper.queryById(id);
    }

    @Override
    public List<Order> queryall() {
        return orderMapper.queryall();
    }
}
